﻿using System;
using System.Windows.Controls;

namespace FazaDemo.PL.Wpf
{
    class CheckedBuildWorker : VisualBuildWorker
    {

        private readonly bool _isChecked;

        public CheckedBuildWorker(bool isChecked)
        {
            _isChecked = isChecked;
        }

        protected override void FactoryInit()
        {
            if (_type == typeof(CheckBox))
            {
                _factory = new CheckBoxFactory(_isChecked);
            }
        }
    }
}